package com.hopoke.common.domain;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    CLIENT_ERROR(201, "信息错误"),
    SERVER_ERROR(500, "服务器错误"),
    REQUEST_ERROR(400, "请求错误"),
    FORBIDDEN(403, "拒绝访问"),
    UNAUTHORIZED(401, "未登录"),
    TOKEN_EXPIRED(402, "token已过期");

    private final int code;
    private final String message;

    private ResultCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

}
